﻿<%@ Page Title="WDPA: Password Reminder" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="PasswordReminder.aspx.cs" Inherits="PasswordReminder" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">
    <br />
    <div class="span-8">
        &nbsp;</div>
    <div class="span-10">
        <table width="100%" cellpadding="0" cellspacing="0" border="0" style="text-align: center;">
            <tr>
                <td>
                    <div id="divRecoverPassword" runat="server" style="text-align: center;">
                        <p style="text-align:left;">
                            Please provide your email address that you registered with. Your password will be
                            sent to this address.</p>
                        <table width="35%" cellpadding="0" cellspacing="0" border="0" style="text-align: center;">
                            <tr>
                                <td>
                                    Email:
                                </td>
                                <td>
                                    <asp:TextBox ID="tbEmail" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbEmail"
                                        ErrorMessage="Required"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:RegularExpressionValidator ID="emailregex" ValidationExpression="^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$"
                                        ControlToValidate="tbEmail" runat="server" ErrorMessage="Valid E-mail required"></asp:RegularExpressionValidator>
                                    <br />
                                    <asp:Label ID="LError" runat="server" ForeColor="Red" />
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <br />
                                    <asp:Button ID="btnSendPassword" runat="server" Text="Submit" OnClick="btnSendPassword_Click" />
                                    <br />
                                    <br />
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id="divPasswordSent" runat="server" style="text-align: center;" visible="false">
                        <table width="35%" cellpadding="0" cellspacing="0" border="0" style="text-align: center;">
                            <tr>
                                <td>
                                    <p>
                                        An email which contains your password has been sent to you.<br />
                                        <br />
                                        Regards,<br />
                                        The WDPA Team</p>
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <div class="span-6 last">
        &nbsp;</div>
</asp:Content>
